package jdk8.homework.Demo05;

public class Demo05 {
    public static void main(String[] args) {
        String s = "abcdefg";
        String s1 = doStr(String::toUpperCase, s);
        String s2 = doStr(s3 -> s3.substring(1, 3), s1);
        System.out.println(s2);
    }

    private static String doStr(StringDemo stringDemo, String s) {
        return stringDemo.getVlaue(s);
    }
}
